#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: demo.py.py 
@version:
@time: 2022/04/21 
"""
import json

from TapClientConnector.connector.tap_connector18_mq.mq01_activemq import ActiveMQProducer

con_info = {
    'host': '192.168.1.183',
    'port': '61613',
    'user': 'admin',
    'password': 'admin',
    'des': '/queue/zsj'
}
con2 = ActiveMQProducer(con_info)
data1 = {"string": "string", "number": 1000, 'boolean': True, 'Array': [1, 2, 3], 'object': {'test': 'test'}}
json_data = json.dumps(data1)
con2.send(json_data)
con2.send(json_data)
con2.send(json_data)
